﻿using AutoMapper;
using Wlmy.Ids4.Model;
using Wlmy.Ids4.Model.Dto.Role;
using Wlmy.Ids4.Model.Dto.User;
using Wlmy.Ids4.Model.Dto.UserClaim;
using Wlmy.Ids4.Model.Model;

namespace IdentityServerApi.AutoMapper
{
    public class UserProfile:Profile
    {
        public UserProfile()
        {
            CreateMap<CreateUserInput, User>();
            CreateMap<User,GetUserListOutput >();
        }
    }
    public class RoleProfile:Profile
    {
        public RoleProfile()
        {
            CreateMap<CreateRoleInput, Role>();
        }
    }
    public class UserClaimProfile : Profile
    {
        public UserClaimProfile()
        {
            CreateMap<UserClaim, GetUserClaimListOutput>();
        }
    }
}
